package com.jy.api.vo;

import com.jy.api.domain.Product;
import com.jy.api.domain.ProductType;
import lombok.Data;

/**
 * Created by Administrator on 2018/7/9.
 */
@Data
public class ProductAndTypeVo {

    private String name;

    private  String typeName;

    private  Integer quantity;

    public ProductAndTypeVo() {
    }

    public ProductAndTypeVo(Product product, ProductType productType) {
        this.name = product.getName();
        this.typeName = productType.getName();
        this.quantity = product.getQuantity();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
}
